package com.quanxiaoha.framnework.biz.content.config;


import com.quanxiaoha.framnework.biz.content.filter.HeaderUserId2ContextFilter;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;


@AutoConfiguration
public class ContextAutoConfiguration {

    /**
     * @param:
     * @return: org.springframework.boot.web.servlet.FilterRegistrationBean<com.quanxiaoha.framnework.biz.content.filter.HeaderUserId2ContextFilter>
     * @description: 在其他模块导入该模块会自动装配Bean
     */
    @Bean
    public FilterRegistrationBean<HeaderUserId2ContextFilter> filterFilterRegistrationBean() {
        HeaderUserId2ContextFilter filter = new HeaderUserId2ContextFilter();
        FilterRegistrationBean<HeaderUserId2ContextFilter> bean = new FilterRegistrationBean<>(filter);
        return bean;
    }
}
